import request from "@/utils/request"
export  function saveFile(data) { //上传多个图片加文件信息
    return request({
        url: `/tool/fileManage/saveFile`,
        method: "post",
        data:data
    })
}   
export  function getContractType(params) { //获取分页，文档类别
    return request({
        url: `/base/contractType/list`,
        method: "get",
        params
    })
} 
export  function getFileboxListApi(params) {  //获取文控信息
    return request({
        url: `/tool/filebox/list`,
        method: "get",
        params
    })
} 
export  function getMenbersApi(params) { //获取成员列表
    return request({
        url: `/tool/fileboxRole/listVo`,
        method: "get",
        params
    })
} 
export  function getFileSum(params) { //获取已上传
    return request({
        url: `/tool/filebox/fileSum`,
        method: "get",
        params
    })
} 
export  function listCircleStaff(params) { //添加成员，问圈获取
    return request({
        url: `/tool/fileManage/listCircleStaff`,
        method: "get",
        params
    })
} 
export  function  getFileboxRoleList(params) { //问圈获取权限
    return request({
        url: `/tool/fileboxRole/list`,
        method: "get",
        params
    })
} 
export  function  setRole(data) { //添加成员，问圈获取
    return request({
        url: `tool/fileboxRole/setRole`,
        method: "post",
        data
    })
} 
export  function  deleteRoleApi(data) { //删除
    return request({
        url: `tool/fileboxRole/edit`,
        method: "put",
        data
    })
} 
export  function  roleEdit(data) { //修改成员上传权限
    return request({
        url: `/tool/fileboxRole/edit`,
        method: "put",
        data
    })
} 
export  function  getPrice(params) { //获取购买份数金额
    return request({
        url: `/tool/filebox/getPrice`,
        method: "get",
        params
    })
} 
export  function  selectCircleAmount(params) { //获取问圈角色
    return request({
        url: `/service/circle/selectCircleAmount`,
        method: "get",
        params
    })
} 
export  function  mobileCircleAmount(params) { //获取问圈角色
    return request({
        url: `/service/circle/mobileCircleAmount`,
        method: "get",
        params
    })
} 
export  function  addOrder(params) { //购买下单
    return request({
        url: `tool/filebox/addOrder`,
        method: "post",
        params
    })
} 
export  function  voucherPay(params) { //支付
    return request({
        url: `/financial/deposit/voucherPay`,
        method: "post",
        params
    })
} 
export  function  getAddOrderTryApi(params) { //试用下单
    return request({
        url: `tool/filebox/addOrderTry`,
        method: "post",
        params
    })
} 
export  function  getFileToImgs(data) { //文件获取图片
    return request({
        url: `/tool/fileManage/fileToImgs`,
        method: "post",
        data
    })
} 
export  function  addPdfWaterMark(params) { //获取文件url
    return request({
        url: `/tool/fileManage/addPdfWaterMark`,
        method: "get",
        params
    })
} 